package PTA_03_09;

import java.util.Scanner;

public class s3 {
    public static void main(String[] args) {
        int[] arr = new int[10];
        Scanner sc = new Scanner(System.in);
        for(int i = 0;i < arr.length; i++)
        {
            arr[i] = sc.nextInt();

        }
        int max = arr[0];
        int min = arr[0];
        int flag = 0;
        double sum = 0;
        double avg = 0.0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0) {
                flag++;
                sum += arr[i];
            }
            if (arr[i] < min) {
                min = arr[i];
            }
            if (arr[i] > max) {
                max = arr[i];
            }
        }
        if(flag == 0)
        {
            System.out.println("最大值是" + max);
            System.out.println("最小值是" + min);
            System.out.println("偶数的个数是" + flag);
            System.out.println("偶数的平均值是0.0");
        }
        else {
            avg = sum / flag;
            System.out.println("最大值是" + max);
            System.out.println("最小值是" + min);
            System.out.println("偶数的个数是" + flag);
            System.out.printf("偶数的平均值是%.1f" , avg);
        }

    }
}
